package com.hung.exception;

/**
 * Created by Administrator on 2017/4/17.
 */
public class AbstractException  extends  Exception{

    protected   int errorCode = -999;

    public AbstractException() {
        super();
    }


    public AbstractException(String message) {
        super(message);
    }
    public AbstractException(int errorCode,String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public AbstractException(int errorCode,String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }
    protected AbstractException(Throwable cause) {
        super(cause);
    }

    protected AbstractException(String message, Throwable cause,
                        boolean enableSuppression,
                        boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

}
